package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.OpenAccountQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.OpenAccountQueryResponse;
/**
 * 开户状态查询
 * @author hty
 *
 */
public class DraftOpenAccountQueryTest extends BaseRequest {
	public void testDraftOpenAccountQueryRequest() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_OPEN_ACCOUNT_QUERY.getTransCode());

		OpenAccountQueryRequest data = OpenAccountQueryRequest.newBuilder()
				.setOriginalClientTransId("2019101010570431800080100000000005600000000")
				.setCertId("931310201785069763")
				.build();
		rf.transType(TransType.DRAFT_OPEN_ACCOUNT_QUERY.getTransCode())
				.responseClass(OpenAccountQueryResponse.class)
				.data(data);

		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}
}
